package reduce.fz.com.reduce.activity;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.bean.User;
import reduce.fz.com.reduce.fragment.AttentionListFragment;
import reduce.fz.com.reduce.fragment.MyWorksListFragment;
import reduce.fz.com.reduce.service.VideoService;
import reduce.fz.com.reduce.service.preference.UserPreference;
import reduce.fz.com.reduce.util.ServiceBuilder;

public class MyWorksListActivity extends BaseToolBarActivity {
    //用户id
    private Long uid = 0l;
    private MyWorksListFragment fragment;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_works_list);
        setToolbarTitle("我的作品");
        uid = getIntent().getLongExtra("uid", 0l);
        attachFragment();
    }
    @Override
    public void initWidget() {

    }


    @Override
    public void initListener() {

    }

    public void attachFragment() {
        User user = UserPreference.getUser();
        fragment = MyWorksListFragment.create(uid);
        getSupportFragmentManager().beginTransaction().replace(R.id.main_container, fragment).commit();
    }


}
